cmake_minimum_required(VERSION 3.25)
project(longquxiankeshihua)
set(CMAKE_CXX_STANDARD 17)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")

#MESSAGE(STATUS "This is BINARY dir " ${PROJECT_BINARY_DIR})
include_directories(${PROJECT_SOURCE_DIR}/include)
link_directories(${PROJECT_SOURCE_DIR}/lib)

add_executable(longquxiankeshihua src/main.cpp)
target_link_libraries(longquxiankeshihua PRIVATE yaml-cpp)#添加链接库
#add_executable(button button.cpp button.h)
if(WIN32)
    target_link_libraries(longquxiankeshihua PRIVATE easyx)
else()
    target_link_libraries(longquxiankeshihua PRIVATE easyx)
endif()
#target_link_libraries(longquxiankeshihua easyx)

target_include_directories(longquxiankeshihua
        PRIVATE
        ${PROJECT_SOURCE_DIR}/include
        )
